package com.suinian.qinghebackendproj.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;

import java.io.Serial;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  商品表
 *
 * @author 15239
 * @since 2024-11-22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "product", schema = "green")
public class Product implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Integer id;

    private Integer imageTableId;

    private BigDecimal productPrice;

    private Integer uploadingUserId;

    private String productDescription;

    private Integer stockQuantity;

    private Integer salesVolume;

    private Integer favoritesCount;

    private String productStatus;

}
